|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgalcommand.io.ErrorHandler
public abstract class ErrorHandler
| Field Summary | |
|---|---|
static java.util.List<java.io.PrintStream> |
stderrs
|
| Constructor Summary | |
|---|---|
ErrorHandler()
|
|
| Method Summary | |
|---|---|
static void |
addErrStream(java.io.PrintStream errout)
Adds another destination for error messages. |
static void |
printErrMsg(java.lang.Class src,
java.lang.String msg)
Prints a line in all registered output used for error messages containing the class that caused the error followed by the specified error message. |
static void |
printException(java.lang.Class src,
java.lang.Exception e)
Prints the Exception and its stack trace to the error outputs |
static void |
showException(java.lang.Class src,
java.lang.Exception e)
Does something to indicate to the user that an expception has occured. |
static void |
showException(java.lang.Class src,
java.lang.Exception e,
java.lang.String info)
Does something to indicate to the user that an expception has occured. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.List<java.io.PrintStream> stderrs
| Constructor Detail |
|---|
public ErrorHandler()
| Method Detail |
|---|
public static void addErrStream(java.io.PrintStream errout)
errout - A PrintStream that you want to recieve error and debugging
information
public static void printErrMsg(java.lang.Class src,
java.lang.String msg)
src - The class of the method that throws the errormsg - Message to print to the error printstreams
public static void printException(java.lang.Class src,
java.lang.Exception e)
src - The class of the method that caused the exceptione - The Exception that was thrown
public static void showException(java.lang.Class src,
java.lang.Exception e)
src - The class of the method that caused the exceptione - The Exception that was thrown
public static void showException(java.lang.Class src,
java.lang.Exception e,
java.lang.String info)
src - The class of the method that caused the exceptione - The Exception that was throwninfo - Some extra information to show to the user as part of the
message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||